/* ZZESHOP – samostatná nákupní karta, Apollo, v2 (+ hodnocení pod košíkem). */
body.type-detail #product-detail-form .zz-buybox-card {
  box-sizing: border-box;
  width: 100%;
  margin: 20px 0 25px;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}
body.type-detail #product-detail-form .zz-buybox-card > .zz-buybox-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.type-detail #product-detail-form .zz-buybox-info > .detail-grid-item {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  flex: none;
  margin: 0;
  padding: 0;
}
body.type-detail #product-detail-form .zz-buybox-info .detail-grid-title {
  margin-bottom: 8px;
}
body.type-detail #product-detail-form .zz-buybox-card > .add-to-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #eee;
}
body.type-detail #product-detail-form .zz-buybox-card > .add-to-cart > .quantity {
  flex: 0 0 auto;
  margin: 0;
}
body.type-detail #product-detail-form .zz-buybox-card > .add-to-cart > .add-to-cart-button {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}
body.type-detail #product-detail-form .zz-buybox-ready > .p-info-grid:empty {
  display: none;
}
@media (max-width: 767px) {
  body.type-detail #product-detail-form .zz-buybox-card { padding: 20px; }
  body.type-detail #product-detail-form .zz-buybox-card > .zz-buybox-info { gap: 16px; }
}
@media (max-width: 359px) {
  body.type-detail #product-detail-form .zz-buybox-card > .zz-buybox-info { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v2: odznaky hodnocení pod tlačítkem ---------- */
body.type-detail #product-detail-form .zz-buybox-card > .zz-buybox-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 16px 0 0;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 84px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  color: #1d1d1b;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge:hover {
  transform: translateY(-2px);
  border-color: #d5d8de;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge:focus-visible {
  outline: 2px solid #1d1d1b;
  outline-offset: 2px;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-stars {
  color: #f5b301;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-note {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
}
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-logo--zbozi { max-height: 28px; }
body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-logo--heureka { max-height: 60px; }
@media (max-width: 400px) {
  body.type-detail #product-detail-form .zz-buybox-card > .zz-buybox-badges { gap: 6px; }
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge { min-height: 76px; padding: 8px 4px; border-radius: 12px; }
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-score { font-size: 14px; }
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-stars { font-size: 12px; letter-spacing: 0; }
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-logo--zbozi { max-height: 22px; }
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge-logo--heureka { max-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  body.type-detail #product-detail-form .zz-buybox-badges .zz-badge { transition: none; }
}
